package com.business.service.interfaced.impl;


import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.business.service.interfaced.HighEntertainManager;
import com.system.dao.DaoSupport;
import com.system.util.PageData;

/**
 * 荣耀特权管理接口
 * @Function 
 * @Author zhaozhenhua
 * @Date 2018年4月13日
 */

@Service("highEntertainInService")
public class HighEntertainInService implements HighEntertainManager{
	
	@Resource(name="daoSupport")
	private DaoSupport dao;
	
	/**通过游艇店的ID获取详情数据 
	 * @param pd
	 * @throws Exception
	 */
	@Override
	public PageData getServerByGolfId(PageData pd) throws Exception {
		return (PageData)dao.findForObject("ServerInMapper.getServerByGolfId", pd);
	}


	/**通过马术的ID获取服务详情
	 * @param pd
	 * @throws Exception
	 */
	@Override
	public PageData getServerByHorseId(PageData pd) throws Exception {
		return (PageData)dao.findForObject("ServerInMapper.getServerByHorseId", pd);
	}


	/**通过游艇店的ID获取详情数据 
	 * @param pd
	 * @throws Exception
	 */
	@Override
	public PageData getServerByLuxCarId(PageData pd) throws Exception {
		return (PageData)dao.findForObject("ServerInMapper.getServerByLuxCarId", pd);
	}


	/**通过飞机的ID获取服务详情
	 * @param pd
	 * @throws Exception
	 */
	@Override
	public PageData getServerByPlaneId(PageData pd) throws Exception {
		return (PageData)dao.findForObject("ServerInMapper.getServerByPlaneId", pd);
	}


	/**通过游艇的ID获取服务详情 
	 * @param pd
	 * @throws Exception
	 */
	@Override
	public PageData getServerByYachtId(PageData pd) throws Exception {
		return (PageData)dao.findForObject("ServerInMapper.getServerByYachtId", pd);
	}

	/**
	 * 修改高尔夫店铺信息
	 */
	@Override
	public void updGolfInfoById(PageData pd) throws Exception {
		dao.update("ServerInMapper.updGolfInfoById", pd);
	}

	/**
	 * 修改马术店铺信息
	 */
	@Override
	public void updHorseInfoById(PageData pd) throws Exception{
		dao.update("ServerInMapper.updHorseInfoById", pd);
	}

	/**
	 * 修改豪车店铺信息
	 */
	@Override
	public void updLuxcarInfoById(PageData pd) throws Exception{
		dao.update("ServerInMapper.updLuxcarInfoById", pd);
	}

	/**
	 * 修改飞机店铺信息
	 */
	@Override
	public void updPlaneInfoById(PageData pd) throws Exception{
		dao.update("ServerInMapper.updPlaneInfoById", pd);
	}

	/**
	 * 修改游艇店铺信息
	 */
	@Override
	public void updYachtInfoById(PageData pd) throws Exception{
		dao.update("ServerInMapper.updYachtInfoById", pd);
	}

	/**
	 * 通过ID获取高尔夫店铺信息
	 */
	@Override
	public PageData getGolfShopById(PageData pd) throws Exception {
		return (PageData) dao.findForObject("ServerInMapper.getGolfShopById", pd);
	}

	/**
	 * 通过ID获取马术店铺信息 
	 */
	@Override
	public PageData getHorseShopById(PageData pd) throws Exception {
		return (PageData) dao.findForObject("ServerInMapper.getHorseShopById", pd);
	}

	/**
	 * 通过ID获取豪车店铺信息
	 */
	@Override
	public PageData getLuxCarShopById(PageData pd) throws Exception {
		return (PageData) dao.findForObject("ServerInMapper.getLuxCarShopById", pd);
	}

	/**
	 * 通过ID获取飞机店铺信息
	 */
	@Override
	public PageData getPlaneShopById(PageData pd) throws Exception {
		return (PageData) dao.findForObject("ServerInMapper.getPlaneShopById", pd);
	}

	/**
	 * 通过ID获取游艇店铺信息
	 */
	@Override
	public PageData getYachtShopById(PageData pd) throws Exception {
		return (PageData) dao.findForObject("ServerInMapper.getYachtShopById", pd);
	}


	/**
	 * 获取高尔夫商家id
	 */
	@Override
	public PageData getGolfBusinessId(PageData pd) throws Exception {
		return (PageData) dao.findForObject("ServerInMapper.getGolfBusinessId", pd);
	}


	/**
	 * 获取马术商家id
	 */
	@Override
	public PageData getHorseBusinessId(PageData pd) throws Exception {
		return (PageData) dao.findForObject("ServerInMapper.getHorseBusinessId", pd);
	}


	/**
	 * 获取豪车商家id
	 */
	@Override
	public PageData getLuxcarBusinessId(PageData pd) throws Exception {
		return (PageData) dao.findForObject("ServerInMapper.getLuxcarBusinessId", pd);
	}


	/**
	 * 获取飞机商家id
	 */
	@Override
	public PageData getPlaneBusinessId(PageData pd) throws Exception {
		return (PageData) dao.findForObject("ServerInMapper.getPlaneBusinessId", pd);
	}


	/**
	 * 获取游艇商家id
	 */
	@Override
	public PageData getYachtBusinessId(PageData pd) throws Exception {
		return (PageData) dao.findForObject("ServerInMapper.getYachtBusinessId", pd);
	}


	/**
	 * 获取高尔夫详情 
	 */
	@Override
	public PageData getGolfDetById(PageData pd) throws Exception {
		return (PageData) dao.findForObject("ServerInMapper.getGolfDetById", pd);
	}


	/**
	 * 获取马术详情
	 */
	@Override
	public PageData getHorseDetById(PageData pd) throws Exception {
		return (PageData) dao.findForObject("ServerInMapper.getHorseDetById", pd);
	}


	/**
	 * 取飞机详情 
	 */
	@Override
	public PageData getPlaneDetById(PageData pd) throws Exception {
		return (PageData) dao.findForObject("ServerInMapper.getPlaneDetById", pd);
	}


	/**
	 * 获取豪车详情
	 */
	@Override
	public PageData getLuxCarDetById(PageData pd) throws Exception {
		return (PageData) dao.findForObject("ServerInMapper.getLuxCarDetById", pd);
	}


	/**
	 * 获取游艇详情
	 */
	@Override
	public PageData getYachtDetById(PageData pd) throws Exception {
		return (PageData) dao.findForObject("ServerInMapper.getYachtDetById", pd);
	}


	/**
	 * 修改高尔夫店铺详情
	 */
	@Override
	public void updGolfDetById(PageData pd) throws Exception {
		dao.update("ServerInMapper.updGolfInfoById", pd);
	}


	/**
	 * 改马术店铺详情
	 */
	@Override
	public void updHorseDetById(PageData pd) throws Exception {
		dao.update("ServerInMapper.updHorseDetById", pd);
	}


	/**
	 * 修改飞机店铺详情
	 */
	@Override
	public void updPlaneDetById(PageData pd) throws Exception {
		dao.update("ServerInMapper.updPlaneDetById", pd);
	}


	/**
	 * 修改豪车店铺详情
	 */
	@Override
	public void updLuxcarDetById(PageData pd) throws Exception {
		dao.update("ServerInMapper.updLuxcarDetById", pd);
	}


	/**
	 * 修改游艇店铺详情
	 */
	@Override
	public void updYachtDetById(PageData pd) throws Exception {
		dao.update("ServerInMapper.updYachtDetById", pd);
	}


	/**
	 * 添加高尔夫店铺详情
	 */
	@Override
	public void addGolfDet(PageData pd) throws Exception {
		dao.save("ServerInMapper.addGolfDet", pd);
	}


	/**
	 * 添加游艇店铺详情
	 */
	@Override
	public void addYachtDet(PageData pd) throws Exception {
		dao.save("ServerInMapper.addYachtDet", pd);
	}


	/**
	 * 添加豪车店铺详情
	 */
	@Override
	public void addLuxcarDet(PageData pd) throws Exception {
		dao.save("ServerInMapper.addLuxcarDet", pd);
	}


	/**
	 * 添加飞机店铺详情
	 */
	@Override
	public void addPlaneDet(PageData pd) throws Exception {
		dao.save("ServerInMapper.addPlaneDet", pd);
	}


	/**
	 * 添加马术店铺详情
	 */
	@Override
	public void addHorseDet(PageData pd) throws Exception {
		dao.save("ServerInMapper.addHorseDet", pd);
	}


	/**
	 * 高端特权生成订单
	 */
	@Override
	public void addHighOrder(PageData pd) throws Exception {
		dao.save("HighEnterOrderMapper.addHighOrder", pd);
	}


	/**
	 * 后台查询高端特权订单列表
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getHighOrders(PageData pd) throws Exception {
		return (List<PageData>) dao.findForList("HighEnterOrderMapper.getHighOrders", pd);
	}


	/**
	 * 后台统计高端特权订单数量
	 */
	@Override
	public int getHighOrderCount(PageData pd) throws Exception {
		return dao.findForInt("HighEnterOrderMapper.getHighOrderCount", pd);
	}


	/**
	 * 根据订单号获取订单信息
	 */
	@Override
	public PageData getHighOrderByNo(PageData pd) throws Exception {
		return (PageData) dao.findForObject("HighEnterOrderMapper.getHighOrderByNo", pd);
	}


	/**
	 * 修改高端特权订单
	 */
	@Override
	public void updHighOrder(PageData pd) throws Exception {
		dao.update("HighEnterOrderMapper.updHighOrder", pd);
	}

}
